package com.example.dishit.model.editpref;

public class PreferenceDatabaseFactory {
    private static final IPreferenceDatabase instance = new IPreferenceDatabase() {
        private PreferenceData data = new PreferenceData.Builder().build();
        
        public void storePreferences(PreferenceData data) { this.data = data; }
        public PreferenceData getPreferences()            { return data; }
    };
    
    private PreferenceDatabaseFactory() {}
    
    public static IPreferenceDatabase instance() { return instance; }
}
